package com.zzt.questionbankquestion.mapper;

import com.zzt.questionbankquestion.bean.Course;
import com.zzt.questionbankquestion.bean.dto.CourseDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel="spring")
public interface CourseConverter {
    CourseConverter INSTANCE= Mappers.getMapper(CourseConverter.class);

    CourseDTO doToDTO(Course course);
    List<CourseDTO> doToDTO(List<Course> courses);
    Course dtoToDo(CourseDTO courseDTO);
    List<Course> dtoToDo(List<CourseDTO> courseDTOS);
}
